<template>
  <div id="app">
    <XccHeader v-if="headerShow" />
    <div id="childContainer" />
    <div style="padding-top:70px">
      <router-view />
    </div>

  </div>
</template>
<script>
import XccHeader from '@/components/Header/XccHeader'
export default {
  components: {
    XccHeader
  },
  computed: {
    headerShow() {
      return this.$store.getters.headerShow || this.$route.path === '/'
    }
  }
}
</script>
<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
